package com.vn.ld.user.service;

import java.util.List;

import com.vn.ld.btc.dao.entity.Customer;

public interface UserService {

	/**
	 * Gets the all customer.
	 * 
	 * @return the all customer
	 */
	public List<Customer> getAllCustomer();

	/**
	 * Register customer.
	 * 
	 * @param customer the customer
	 * @return the customer
	 */
	public Customer registerCustomer(Customer customer);

	/**
	 * Update customer.
	 * 
	 * @param customerId the customer id
	 * @param customer the customer
	 * @return the customer
	 */
	public Customer updateCustomer(Integer customerId, Customer customer);

	/**
	 * Find customer by id.
	 * 
	 * @param customerId the customer id
	 * @return the customer
	 */
	public Customer findCustomerById(Integer customerId);

	/**
	 * Find customer by email.
	 * 
	 * @param email the email
	 * @return the customer
	 */
	public Customer findCustomerByEmail(String email);

	public Customer login(String email, String password);

}
